#include <iostream>
#include <string>
#include "../mqcomm/Helper.hpp"
using namespace std;

int main() {
    const string filename = "./data/message/queue1.mqd";
    string body;
    if (!FileHelper::read(filename, body)) {
        cout << "读取出错！"<< endl;
        return 0;
    }
    cout << "读取到的内容是: " << body << endl;
    // size_t len;
    // if (!FileHelper::read(filename, (char*)&len, 0, sizeof(size_t))) {
    //     cout << "读取出错！" << endl;
    //     return 0;
    // }
    // cout << "读到的长度是: " << len << endl;

    return 0;
}